<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateCompanyServerTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('company_server', function(Blueprint $table){ //律师事务所
			$table->increments('id');
			$table->integer('user_id');//user id
			$table->integer('order_id');
			$table->string('contact', 30)->nullable()->defaults('');//联系人
			$table->string('contact_phone', 30)->nullable()->defaults('');//负责人		
			$table->string('email',30)->nullable()->defaults('');//邮箱
			$table->string('company_name',100)->nullable()->defaults('');
			$table->string('province',100)->nullable()->defaults('');
			$table->string('city',100)->nullable()->defaults('');
			$table->string('district',100)->nullable()->defaults('');
			$table->text('memo')->defaults('')->nullable();
			$table->enum('invoice', array('Y', 'N'))->nullable();
			$table->timestamps();
		});
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		//
	}

}
